package Demo1299.Demo24;

import java.io.FileReader;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class Demo1 {
    public static void main(String[] args) throws Exception {
        HashMap<String, String> map = new HashMap<>();
        Properties prop = new Properties();
        FileReader in = new FileReader("C:\\Daymate\\src\\Demo1299\\Demo23\\mapdata.properties");
        prop.load(in);
        in.close();
        for (Map.Entry<Object, Object> p : prop.entrySet()) {
            map.put((String) p.getKey(),(String)p.getValue());
        }
        System.out.println(map);
    }
}
